<div ng-controller="updateProductCtrl
">
    <h4>抽奖商品修改</h4>

    <form class="form account-form">
        <label class="control-label">商品名称：</label> {{productName}} <br />
        <label class="control-label">当前库存：</label>{{inventory}} <br />
        <label class="control-label">商品类型：</label><span ng-show="type==1">实物</span><span ng-show="type==2">情值</span>
        <br /><br />
        <label class="control-label">库存修改：</label>
        <label class="radio-inline">
            <input type="radio" name="inlineRadioOptions" id="inlineRadio3" ng-model="inventoryType" value="0">减少
        </label>
        <label class="radio-inline">
            <input type="radio" name="inlineRadioOptions" id="inlineRadio4" ng-model="inventoryType" value="1">增加
        </label><br/>
        <label class="control-label">修改数量：</label>
        <input class="form-control" ng-model="updateInventory" required tabindex="5">
        <br />
        <br />
        <!--<label class="control-label">是否上架：</label>
        <label class="radio-inline">
            <input type="radio" name="inlineRadioOptions" id="inlineRadio3" ng-model="isUse" value="1">是
        </label>
        <label class="radio-inline">
            <input type="radio" name="inlineRadioOptions" id="inlineRadio4" ng-model="isUse" value="0">否
        </label>
        -->

        <input type="hidden" class="form-control" ng-model="id" required tabindex="4" autofocus>

        <div class="form-group">
            <button ng-click="cannel()" class="btn btn-xs btn-primary">取消</button>
            <button ng-click="update()" class="btn btn-xs btn-primary" type="submit">保存</button>
        </div>
    </form>
</div>

